This guide demonstrates how to integrate a parent Embedded Wallet with web2 authentication methods for wallet linking purposes. It covers signing into a social login provider and linking using signatures from an external wallet signed in via Web SDK stored privately and securely.
.env
file with your Embedded Wallet configuration after creating a project with Builder:
Waas Config Key
used for the Embedded Wallet.Project Access Key
used for the Embedded Wallet.Google Client ID
for social authentication with Embedded Wallets.0xsequence/waas
and wagmi
packages:parent
wallet. Once authenticated, we would then authenticate them again using Web SDK where the user signs a message after authentication to validate ownership of that wallet. That message will be passed to the linkWallet
API endpoint, with the following typed arguments and return types (negating the optional values):
getSignaturesForLinking
function and unpack the response to pass the responses into the api.linkWallet
function:
parentWalletAddress
,parentWalletMessage
,parentWalletSignature
and signatureChainId
to the API: